package arrary;

/**
 * @author zhaoziqiang
 * @Description:
 * @date 2020/8/13 14:12
 */
public class Main {
    public static void main(String[] args) {
        Array<Integer> arr = new Array<Integer>(20);
        for (int i = 0; i < arr.getCapacity() ; i++) {
            arr.add(i,i);
        }
//        arr.set(1,100);
//        arr.remove(1);
        //        System.out.println(arr);
        //        System.out.println( arr.find(15));
        //        System.out.println(arr.contains(15));
        //        System.out.println(arr.removeFirst());
        //        System.out.println(arr.removeLast());
        //        arr.removeElement(13);
        //        System.out.println(arr);
        System.out.println(arr);
        arr.add(1,50);
        System.out.println(arr);
        arr.addLast(800);
        System.out.println(arr);

    }
}
